package com.yimixian.app.ui.dialog;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.ProgressBar;

import com.yimixian.app.R;
import com.yimixian.app.store.StoresView;
import com.yimixian.app.util.CacheUtils;

/**
 * Created by songzy on 2015/11/26.
 */
public class ProgressDialog {

  private ProgressBar pb;

  public Dialog getProgressDialog(Context context) {
    AlertDialog.Builder builder = new AlertDialog.Builder(context);
    View view = View.inflate(context, R.layout.dialog_progress,null);
    pb = (ProgressBar) view.findViewById(R.id.progress_bar);
    AlertDialog alertDialog = builder.create();
    alertDialog.setView(view);
    return alertDialog;
  }

  public ProgressBar getProgressBar() {
    return pb;
  }
}
